package sdkshell.kuaiyan.com.kuaiyansdk.http.Ihttp;


import java.util.Map;

import sdkshell.kuaiyan.com.kuaiyansdk.http.enums.ProtrolType;
import sdkshell.kuaiyan.com.kuaiyansdk.http.enums.RequestType;

/**
 * Created by Administrator on 2016/7/11.
 */
public interface NetConfig {
    NetConfig setUrl(String url);

    String getUrl();

    String getUrlAndParams();

    RequestType getType();

    NetConfig setType(RequestType type);

    Map<String, String> getHeads();

    NetConfig setHeads(Map<String, String> heads);

    NetConfig setHead(String key, String value);

    Map<String, String> getParams();

    NetConfig addParamsAll(Map<String, String> params);

    NetConfig addParams(String key, String value);

    NetConfig setOnlyWifiConnection(boolean onlyWifi);

    String getContent();

    NetConfig setContent(String content);

    boolean getIsOnlyWifyConnection();

    NetConfig setRetry(int time);

    int getRetry();

    int getCurrentTryTime();

    NetConfig setCurrentTryTime(int time);

    boolean isImage();

    NetConfig setIsImage(boolean isImage);

    String getEncoding();

    NetConfig setEncoding(String encoding);

    NetConfig setProtrol(ProtrolType protrol);

    ProtrolType getProtrol();

    NetConfig setIsDownload(boolean download);

    boolean isDownload();

    String getDownloadPath();

    NetConfig setDownloadPath(String downloadPath);
}
